﻿<%@ Page Title="Quản lý đề thi" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="frmAdTaoDeThi.aspx.cs" Inherits="Admin_frmAdTaoDeThi" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="wrap">
        <h2>
            Quản lý đề thi |
            <asp:HyperLink ID="HyperLink1" runat="server" CssClass="node"
            NavigateUrl="~/Admin/frmQuyTacDe.aspx" BackColor="#F1F1F2" >Qui tắc đề thi</asp:HyperLink>
        </h2>
    </div>
    <div style="clear: both;">&nbsp;</div>
    
    <table class="style1">
    <tr>
        <td class="style2">
            <asp:Label ID="Label1" runat="server" Text="Ma De"></asp:Label>
        </td>
        <td class="style3">
            <asp:TextBox ID="txtMaDe" runat="server"></asp:TextBox>
        </td>
        <td>
            <asp:Button ID="btnThem" runat="server" onclick="btnThem_Click" Text="Thêm" CssClass="button"
                    Width="60px" />
        </td>
    </tr>
    <tr>
        <td class="style2">
            <asp:Label ID="Label2" runat="server" Text="Ten Quy Tac"></asp:Label>
        </td>
        <td class="style3">
            <asp:DropDownList ID="drlQuytac" runat="server" DataSourceID="SqlDataSource1" 
                    DataTextField="MaQT" DataValueField="MaQT" Width="126px">
            </asp:DropDownList>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:TracNghiemTrucTuyenConnectionString %>" 
                    SelectCommand="SELECT [MaQT] FROM [tbl_QUYTACDETHI]"></asp:SqlDataSource>
        </td>
        <td>
            <asp:Button ID="btnSua" runat="server" Text="Sua" CssClass="button"
                    Width="61px" />
        </td>
    </tr>
    <tr>
        <td class="style2">
            <asp:Label ID="Label3" runat="server" Text="Ten Mon"></asp:Label>
        </td>
        <td class="style3">
            <asp:DropDownList ID="drlTenmon" runat="server" Width="125px">
                <asp:ListItem>CSDL</asp:ListItem>
                <asp:ListItem>Winform</asp:ListItem>
                <asp:ListItem>ASP.NET</asp:ListItem>
            </asp:DropDownList>
        </td>
        <td>
            <asp:Button ID="btnXoa" runat="server" Text="Xoa" Width="61px" CssClass="button" />
        </td>
    </tr>
    <tr>
        <td class="style2">
            <asp:Label ID="Label4" runat="server" Text="Ten De Thi"></asp:Label>
        </td>
        <td class="style3">
            <asp:TextBox ID="txtTenDT" runat="server"></asp:TextBox>
        </td>
        <td>
            <asp:Button ID="btnHuy" runat="server" Text="Huy" Width="62px" CssClass="button"/>
        </td>
    </tr>
    <tr>
        <td class="style2" colspan="2">
            <asp:Label ID="Label5" runat="server" Text="Thong Tin De Thi"></asp:Label>
        </td>
        <td>
            <asp:Label ID="Label6" runat="server" Text="Chi Tiet De Thi"></asp:Label>
        </td>
    </tr>
    <tr>
        <td class="style2" colspan="2">
            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" 
                    DataKeyNames="MaDT" DataSourceID="SqlDataSource2" ForeColor="#333333" 
                    GridLines="None" 
                onselectedindexchanged="GridView1_SelectedIndexChanged" 
                AutoGenerateEditButton="True" >
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <Columns>
                    <asp:BoundField DataField="MaDT" HeaderText="MaDT" ReadOnly="True" 
                            SortExpression="MaDT" />
                    <asp:BoundField DataField="MaQT" HeaderText="MaQT" SortExpression="MaQT" />
                    <asp:BoundField DataField="MaMon" HeaderText="MaMon" SortExpression="MaMon" />
                    <asp:BoundField DataField="TenDeThi" HeaderText="TenDeThi" 
                            SortExpression="TenDeThi" />
                </Columns>
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#999999" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            </asp:GridView>
            <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:TracNghiemTrucTuyenConnectionString %>" 
                    SelectCommand="SELECT * FROM [tbl_DETHI]"></asp:SqlDataSource>
        </td>
        <td>
            <asp:GridView ID="GridView2" runat="server" CellPadding="4" ForeColor="#333333" 
                    GridLines="None">
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#999999" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            </asp:GridView>
        </td>
    </tr>
</table>
</asp:Content>

